<template>
  <div id="app">
    <Loading v-if="isLoading" />
    <router-view />
  </div>
</template>

<script>
import Loading from "@/components/Loading";
import { mapState } from "vuex";

export default {
  components: {
    Loading,
  },
  computed: {//加载数据过程loading
    ...mapState(["isLoading"])
  },
};
</script>

<style>
html,
body,
#app {
  height: 100%;
  padding: 0;
  margin: 0;
}
</style>
